package com.cmge.ad.job;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.cmge.ad.service.PictureService;

/**
 * @desc	同步相册
 * @author	ljt
 * @time	2015-1-29 下午3:50:46
 */
@Component
public class SyncAlbum implements Runnable {

	public static final Logger logger = Logger.getLogger(SyncAlbum.class);
	
	@Autowired
	private PictureService pictureService;
	@Scheduled(cron = "0 0/30 * * * ?")
	public void run() {
				logger.info("同步相册开始....");
				
				pictureService.syncAlbum();
				
				logger.info("同步相册结束....");
				
	}

}
